/*
package com.itheima.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext-mapper.xml")
@Repository
public class test {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Test
    public void test() {
        List<Dept> query = jdbcTemplate.query("select * from dept", new BeanPropertyRowMapper<Dept>(Dept.class));
        for (Dept dept : query) {
            System.out.println(dept);
        }

    }
}
*/
